import request from '@/utils/request'

// 查询文件列表
export function listPayFile(query) {
    return request({
        url: '/fund/payFile/list',
        method: 'get',
        params: query
    })
}

// 查询文件详细
export function getPayFile(id) {
    return request({
        url: '/fund/payFile/' + id,
        method: 'get'
    })
}

// 新增文件
export function addPayFile(data) {
    return request({
        url: '/fund/payFile',
        method: 'post',
        data: data
    })
}

// 修改文件
export function updatePayFile(data) {
    return request({
        url: '/fund/payFile',
        method: 'put',
        data: data
    })
}

// 更新审核状态成功
export function verifyUpdateSuccessStatus(id) {
  return request({
    url: '/fund/payFile/authSuccess?id='+id,
    method: 'get',
  })
}
// 更新审核状态成功
export function verifyUpdateFailStatus(id) {
  return request({
    url: '/fund/payFile/authFail?id='+id,
    method: 'get',
  })
}

// 下发请求
export function transferSend(id) {
  return request({
    url: '/fund/payFile/transfer?id='+id,
    method: 'get',
  })
}

// 删除文件
export function delPayFile(id) {
    return request({
        url: '/fund/payFile/' + id,
        method: 'delete'
    })
}

// 导出文件
export function exportPayFile(query) {
    return request({
        url: '/fund/payFile/export',
        method: 'get',
        params: query
    })
}
